using System;
using System.Reflection;
using System.Resources;
namespace AppToolKit.Model
{
	[Serializable]
	public class FieldMeta
	{
		private string descript_;
		private string field_;
		private Type fieldType_;
		private string domain_;
		private int strLen_ = FieldMeta.MAX_STRING_LEN;
		private static readonly int MAX_STRING_LEN = (int)Math.Pow(2.0, 16.0);
		private string resoucesManager_;
		private Assembly ass_;
		public string Descript
		{
			get
			{
				string @string;
				if (!string.IsNullOrEmpty(this.descript_))
				{
					ResourceManager resourceManager = new ResourceManager(this.resoucesManager_, this.ass_);
					@string = resourceManager.GetString(this.descript_);
				}
				else
				{
					@string = this.descript_;
				}
				return @string;
			}
			set
			{
				this.descript_ = value;
			}
		}
		public string Field
		{
			get
			{
				return this.field_;
			}
			set
			{
				this.field_ = value;
			}
		}
		public Type FieldType
		{
			get
			{
				return this.fieldType_;
			}
			set
			{
				this.fieldType_ = value;
			}
		}
		public string Domain
		{
			get
			{
				return this.domain_;
			}
			set
			{
				this.domain_ = value;
			}
		}
		public int Length
		{
			get
			{
				return this.strLen_;
			}
			set
			{
				this.strLen_ = value;
			}
		}
		public void SetResource(string resourceMgr, Assembly ass)
		{
			this.resoucesManager_ = resourceMgr;
			this.ass_ = ass;
		}
	}
}
